//
//  LBOrderCell.m
//  LBEditCollectionCellOrder
//
//  Created by mac on 2024/6/10.
//

#import "LBOrderCell.h"

@interface LBOrderCell ()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation LBOrderCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self.contentView addSubview:self.titleLabel];
        self.contentView.backgroundColor = [UIColor greenColor];
    }
    return self;
}

- (void)updateWithText:(NSString *)title
{
    self.titleLabel.text = title;
}

#pragma mark - lazy load

- (UILabel *)titleLabel
{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 100, 60)];
        _titleLabel.textAlignment = 3;
        _titleLabel.font = [UIFont systemFontOfSize:14];
        _titleLabel.textColor = [UIColor redColor];
    }
    return _titleLabel;
}

@end
